/**
 * Created by dinghh on 2018-7-11.
 */
(function (angular) {
    function ThinkTankService($resource, $q, $http, UrlConfigService) {
        var timeNewsUrl=UrlConfigService.urlConfig.decisionAnalysis.thinkTankService.thinkTank.time;
        var industryNewsUrl=UrlConfigService.urlConfig.decisionAnalysis.thinkTankService.thinkTank.industry;
        var policyNewsUrl=UrlConfigService.urlConfig.decisionAnalysis.thinkTankService.thinkTank.policy;
        var districtNewsUrl=UrlConfigService.urlConfig.decisionAnalysis.thinkTankService.thinkTank.district;

        BaseListService.call(this, $resource, $q, $http);

        this.getTimeNews = function () {
            return $resource(timeNewsUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };

        this.getIndustryNews = function () {
            return $resource(industryNewsUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };

        this.getPolicyNews = function () {
            return $resource(policyNewsUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };

        this.getDistrictNews = function () {
            return $resource(districtNewsUrl,{},{
                "getData":{"method":"POST"}
            }).getData();
        };
    }

    ThinkTankService.$inject = ['$resource', '$q', '$http', 'UrlConfigService'];
    angular.module('MetronicApp').service('ThinkTankService', ThinkTankService);
})(angular);